<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //document文档，相当于网页对象
        document.write("1");
        document.write("2");
        document.writeln("3");
        document.writeln("4");
    </script>
</head>
<body>
<pre>
    <script>
        document.writeln("3");
        document.writeln("4");
    </script>
</pre>
</body>
</html>